package showtime.framework.engine.input
{
	import flash.events.MouseEvent;
	
	import showtime.framework.engine.World2D;

	public class MouseDevice extends InputDevice
	{
		public static const NUM_INPUTS:int = 1;
		
		public function MouseDevice()
		{
			super(NUM_INPUTS);
		}
		
		public function onMouseDown(event:MouseEvent):void
		{
			keys[Mouse.LEFT] = World2D.now;
		}
		
		public function onMouseUp(event:MouseEvent):void
		{
			keys[Mouse.LEFT] = -World2D.now;
		}
	}
}